
namespace JTZY.Model.Goods
{
    /// <summary>
    /// 商品表
    /// </summary>
    [SugarTable("corecmsgoods")]
    public class Corecmsgoods
    {
        /// <summary>
        /// 商品ID 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 商品 
        /// </summary>
        public string Bn { get; set; }

        /// <summary>
        /// 商品名称 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 商品简介 
        /// </summary>
        public string Brief { get; set; }

        /// <summary>
        /// 缩略图 
        /// </summary>
        public string Image { get; set; }

        /// <summary>
        /// 图集 
        /// </summary>
        public string Images { get; set; }

        /// <summary>
        /// 视频 
        /// </summary>
        public string Video { get; set; }

        /// <summary>
        /// 佣金分配方式 
        /// </summary>
        public int? ProductsDistributionType { get; set; }

        /// <summary>
        /// 商品分类 
        /// </summary>
        public int? GoodsCategoryId { get; set; }

        /// <summary>
        /// 商品类别 
        /// </summary>
        public int? GoodsTypeId { get; set; }

        /// <summary>
        /// sku序列 
        /// </summary>
        public string GoodsSkuIds { get; set; }

        /// <summary>
        /// 参数序列 
        /// </summary>
        public string GoodsParamsIds { get; set; }

        /// <summary>
        /// 品牌 
        /// </summary>
        public int BrandId { get; set; }

        /// <summary>
        /// 是否虚拟商品 
        /// </summary>
        public bool IsNomalVirtual { get; set; }

        /// <summary>
        /// 是否上架 
        /// </summary>
        public bool IsMarketable { get; set; }

        /// <summary>
        /// 商品单位 
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 商品详情 
        /// </summary>
        public string Intro { get; set; }

        /// <summary>
        /// 商品规格序列号存储 
        /// </summary>
        public string SpesDesc { get; set; }

        /// <summary>
        /// 参数序列化 
        /// </summary>
        public string Parameters { get; set; }

        /// <summary>
        /// 评论次数 
        /// </summary>
        public int? CommentsCount { get; set; }

        /// <summary>
        /// 浏览次数 
        /// </summary>
        public int? ViewCount { get; set; }

        /// <summary>
        /// 购买次数 
        /// </summary>
        public int? BuyCount { get; set; }

        /// <summary>
        /// 上架时间 
        /// </summary>
        public DateTime? Uptime { get; set; }

        /// <summary>
        /// 下架时间 
        /// </summary>
        public DateTime? Downtime { get; set; }

        /// <summary>
        /// 商品排序 
        /// </summary>
        public int? Sort { get; set; }

        /// <summary>
        /// 标签id逗号分隔 
        /// </summary>
        public string LabelIds { get; set; }

        /// <summary>
        /// 自定义规格名称 
        /// </summary>
        public string NewSpec { get; set; }

        /// <summary>
        /// 开启规则 
        /// </summary>
        public int? OpenSpec { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 是否推荐 
        /// </summary>
        public bool IsRecommend { get; set; }

        /// <summary>
        /// 是否热门 
        /// </summary>
        public bool IsHot { get; set; }

        /// <summary>
        /// 是否删除 
        /// </summary>
        public bool IsDel { get; set; }

        public int? GoodsFirstCategoryId { get; set; }
        public int? GoodsSecondCategoryId { get; set; }
        /// <summary>
        /// 类别父子关系
        /// </summary>
        public string categoryArr { get; set; }

        /// <summary>
        /// 初始销量 
        /// </summary>
        public int? InitialSales { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(Corecmsuserstock.GoodId), nameof(Id))] //自定义关系映射
        public List<Corecmsuserstock> CorecmsproductsNav { get; set; }
    }
}